<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表单</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
.container{
	width:1024px;}
.panel-body{padding:10px;}
</style>
</head>

<body>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
            垂直表单（默认表单）
            </h3>
        </div>
        <div class="panel-body">
            <form role="form">
                <div class="form-group">
                    <lable>用户名</label>
                    <input type="text" class="form-control" placeholder="请输用户名" />
                </div>
                <div class="form-group">
                    <lable>密码</label>
                    <input type="text" class="form-control" placeholder="请输入密码" />
                </div>
                <div class="form-group">
                        <input type="checkbox" /><label>记住密码</label>
                </div>
                <div class="form-group">
                	<button type="submit" class="btn btn-default">提交</button>
                </div>
            </form>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
            内联表单
            </h3>
        </div>
        <div class="panel-body">
            <form role="form" class="form-inline">
                <div class="form-group">
                    <lable>用户名</label>
                    <input type="text" class="form-control" placeholder="请输用户名" />
                </div>
                <div class="form-group">
                    <lable>密码</label>
                    <input type="text" class="form-control" placeholder="请输入密码" />
                </div>
                <div class="form-group">
                        <input type="checkbox" /><label>记住密码</label>
                </div>
                <div class="form-group">
                	<button type="submit" class="btn btn-default">提交</button>
                </div>
            </form>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
            水平表单
            </h3>
        </div>
        <div class="panel-body">
            <form role="form" class="form-horizontal">
                <div class="form-group row">
                    <div class="col-md-2 control-label">用户名</div>
                    <div class="col-md-10">
                    <input type="text" class="form-control" placeholder="请输用户名" />
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-md-2 control-label">密码</div>
                    <div class="col-md-10">
                    <input type="text" class="form-control" placeholder="请输密码" />
                    </div>
                </div>
                <div class="form-group row">
                 <div class="col-md-3 control-label"> <input type="checkbox" /><label>记住密码</label></div>     
                </div>
                <div class="form-group row">
                <div class="col-md-3 control-label"><button type="submit" class="btn btn-default">提交</button></div>
                	
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
